<template>
	<div name="newBankeSuccess">
		
		<van-nav-bar
			title="创建新班课"			
			fixed			
		/>

        <h2>班课创建成功</h2>
		<div style="margin: 16px;">
            <van-button round block type="info" @click="goDetailBanke">进入该班课</van-button>
        </div>
        <div style="margin: 16px;">
            <van-button round block type="info" plain @click="goHome">返回班课列表</van-button>
        </div>
	</div>
</template>

<script>
	// import { Dialog } from 'vant';

	// import {quitCourse} from '@/api/member.js';
	// import { removeCourse } from '@/api/course.js';
	export default {
		name: 'newBankeSuccess',
		components: {
			
		},
		created() {
			// this.detailBankeInfo = JSON.parse(localStorage.getItem('detailBankeInfo'));
			console.log(this.$route.params.newBankeSuccess);
		},
		data(){
			return {
				
				
			}
		},
		computed: {
			
			
		},
		methods: {
			goDetailBanke() { 				
				localStorage.setItem('detailBankeInfo' , JSON.stringify(this.$route.params.newBankeSuccess));
				this.$router.push({
					name: 'detailBanke',
					// params: {
					// 	bkInfo: c
					// }
				});
			},
            goHome() {				
				this.$router.push({
					name: 'home',
					// params: {
					// 	bkInfo: c
					// }
				});
			}
        }
	}
</script>

<style>
</style>
